package top.yiwyn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;
import top.yiwyn.domain.Arcticle;
import top.yiwyn.domain.Tag;

import java.util.List;

@Component
public interface TagMapper extends BaseMapper<Tag> {
    public List<Tag> selectAll();

    List<Arcticle> selectArcticleByTagId(int id, int start, int offset);

    int getTagCount(int tag_id);
}
